package com.wind.oauth2.server.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wind.oauth2.server.entity.TbPermission;
import com.wind.oauth2.server.mapper.TbPermissionMapper;
import com.wind.oauth2.server.service.TbPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 权限表 服务实现类
 * </p>
 *
 * @author wjf
 * @since 2020-11-05
 */
@Service
public class TbPermissionServiceImpl extends ServiceImpl<TbPermissionMapper, TbPermission> implements TbPermissionService {

    @Autowired
    private TbPermissionMapper tbPermissionMapper;

    @Override
    public List<TbPermission> getPermissionByUserId(Long userId) {
        return tbPermissionMapper.getPermissionByUserId(userId);
    }
}
